//
// Created by Administrator on 2020/7/12 0012.
//

#include "SalesManager.h"

void SalesManager::showData() const
{
    cout<<"编号:"<<NO<<" ";
    cout<<"姓名:"<<name<<" ";
    cout<<"年龄:"<<age<<" ";
    cout<<"职称:"<<"SalesManager"<<" ";
    cout<<"销售额:"<<sales<<endl;
}

string SalesManager::getTitle()const
{
    return "SalesManager";
}

SalesManager::SalesManager(string no, string name, int age, double sales)
        :Staff(no,name,age),Salesman(no,name,age,sales),Manager(no,name,age)
{
    this->NO=no;
    this->name=name;
    this->age=age;
    this->sales=sales;
}

double SalesManager::getSales() const
{
    return this->sales;
}

double SalesManager::setSales(double sales)
{
    this->sales=sales;
}
